# 页面跳转

from flask import  Flask,render_template,make_response

app = Flask(__name__)


@app.route("/hello",methods=["GET","POST"])
def hello():
    return render_template("index.html") # 跳转到页面

@app.route("/hi",methods=["GET","POST"])
def hi():
    return make_response("<h1>你好啊！</h1>",9000)  # 自定义对象响应
    # return make_response(render_template("index.html"))
    # return "<h1>你好啊！</h1>"

if __name__ == '__main__':
    app.run()